//
//  UIOC.h
//  jiasicong
//
//  Created by wandong on 2018/8/16.
//  Copyright © 2018年 jiasicong. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>
#import "SAFRequestApi.h"
@class MBProgressHUD;
//透明显示条
@interface HudBar : NSObject
+(void)setHudProgressObject:(NSProgress*)p;
+(void)showMsg:(NSString*)str;
+(void)waitingMsg;
+(void)waitingMsg:(NSString*)str;
+(void)hideWaiting;
+(void)showCMLoadingView;
+(void)showPercent:(NSString*)str;
+(void)showSuccess:(NSString*)str;
@end

//color
@interface UIColor(productone)

+(UIColor *) hexStringToColor: (int) hex;

+ (UIColor*)pinkThemeColor;
+ (UIColor*)violetThemeColor;//紫色
+ (UIColor*)loginSeperatorColor;
+ (UIColor*)cellBlack3TextColor;
+ (UIColor*)cellBlack6TextColor;
+ (UIColor*)cellBlack9TextColor;
+ (UIColor*)textFieldPlaceholderColor;

+ (UIColor*)redThemeColor;
+ (UIColor*)greenThemeColor;
+ (UIColor*)blueThemeColor;
+ (UIColor*)grayThemeColor;
+ (UIColor*)lightBlueThemeColor;
+ (UIColor*)tableSeparatorColor;
+ (UIColor*)tableBGColor;
+ (UIColor*)loginBGColor;
+ (UIColor*)blueBtnColor;
+ (UIColor*)tableHeadLabelBGColor;
+ (UIColor*)orangeThemeColor;
+ (UIColor*)inputToolBarBGColor;
+ (UIColor*)inputToolBarColor;
+ (UIColor*)inputToolBarTextColor;
+ (UIColor*)lightGrayThemeColor;
+ (UIColor*)loginTextFieldColor;
@end

@interface UIView (PYExtension)
@property (nonatomic, assign) CGFloat py_x;
@property (nonatomic, assign) CGFloat py_y;
@property (nonatomic, assign) CGFloat py_centerX;
@property (nonatomic, assign) CGFloat py_centerY;
@property (nonatomic, assign) CGFloat py_width;
@property (nonatomic, assign) CGFloat py_height;
@property (nonatomic, assign) CGSize  py_size;
@property (nonatomic, assign) CGPoint py_origin;

@end

//tableview
@interface UITableView (catagray)
- (UIView*)getLabelHeader:(NSString *)t;
- (void)initTableOffset;
- (void)initTableOffset1;
- (void)initTableColor;
@end

//navigationbar

//textfield

//imageView
@interface UIImageView (placeholder_text)
- (UIImage*)getTextImg:(NSString*)text;
- (UIImage*)getNameTextImg:(NSString*)text;
@end
//button

//imageview+menucontroller
@interface UIImageViewWithMenu : UIImageView
@property (nonatomic,strong) NSArray<NSString *> *menuTitles;
@property (nonatomic,strong) id model;
@property (nonatomic,strong) SActionBlock1 block;

@property (nonatomic,strong) NSMutableArray<UIMenuItem*> *menuItems;
//block 中的参数model为nil @[@1] model不为nil @[@1,model]
- (void)setMenuTitles:(NSArray*)menuTitles model:(id)model block:(SActionBlock1)block;
@end

//uilabel

@interface SCollectionViewLayout : UICollectionViewLayout

@end
